

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Object Diagram [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Object Diagram,Object Diagram Description,Object Diagram Example,Object Diagram Elements And Connectors,Diagram,Diagram Object">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Object Diagram</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="classdiagram.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="compositestructurediagram.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">An </span><span class="f_BodyText" style="font-style: italic;">Object diagram</span><span class="f_BodyText"> is closely related to a </span><span class="f_BodyText" style="font-style: italic;"><a href="classdiagram.htm">Class diagram</a></span><span class="f_BodyText">, with the distinction that it depicts object instances of Classes and their relationships at a point in time. This might appear similar to a </span><span class="f_BodyText" style="font-style: italic;"><a href="compositestructurediagram.htm">Composite Structure</a></span><span class="f_BodyText"> diagram, which also models run-time behavior; the difference is that Object diagrams exemplify the static Class diagrams, whereas Composite Structure diagrams reflect run-time architectures different from their static counterparts. Object diagrams do not reveal architectures varying from their corresponding Class diagrams, but reflect multiplicity and the roles instantiated Classes could serve. They are useful in understanding a complex Class diagram, by creating different cases in which the relationships and Classes are applied. An Object diagram can also be a kind of </span><span class="f_BodyText" style="font-style: italic;"><a href="communicationdiagram.htm">Communication diagram</a></span><span class="f_BodyText">, which also models the connections between objects, but additionally sequences events along each path.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Communication diagrams were known as Collaboration diagrams in UML 1.4.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Example Diagram</span></p>
<p class="p_BodyText"><span class="f_BodyText">The following example first shows a simple Class diagram, with two <a href="class.htm">Class</a> elements connected.</span></p>
<p class="p_TextIndentedL2"><img src="object%20classifiers.png" width="283" height="153" border="0" alt="Object Classifiers"></p>
<p class="p_BodyText"><span class="f_BodyText">The Classes above are instantiated below as Objects in an Object diagram. There are two instances of </span><span class="f_BodyText" style="font-style: italic;">Computer</span><span class="f_BodyText"> in this model, which can prove useful for considering the relationships and interactions Classes play in practice, as Objects.</span></p>
<p class="p_TextIndentedL2"><img src="example%20object%20diagram.png" width="347" height="233" border="0" alt="Example Object Diagram"></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Toolbox Elements and Connectors</span></p>
<p class="p_BodyText"><span class="f_BodyText">Select Object diagram elements and connectors from the </span><span class="f_UIControl"><a href="object_group.htm">Object</a></span><span class="f_BodyText"><a href="object_group.htm"> pages</a> of the Enterprise Architect UML</span><span class="f_UIControl"> Toolbox</span><span class="f_BodyText" style="font-style: italic;">.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect also supports a number of <a href="business_interaction.htm">stereotyped Object</a> elements to represent various entities in business modeling.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Tip:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Click on the following elements and connectors for more information.</span></p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" bgcolor="#e3e6ed" style="width:190px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Object Diagram Elements</span></p>
</td>
<td valign="top" width="200" bgcolor="#e3e6ed" style="width:200px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Object Diagram Connectors</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="actor.htm"><img src="e_actor.png" width="167" height="23" border="0" alt="e_Actor"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="informationflow.htm"><img src="c_informationflow.png" width="167" height="22" border="0" alt="c_InformationFlow"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="object.htm"><img src="e_object.png" width="167" height="22" border="0" alt="e_Object"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="associate.htm"><img src="c_associate.png" width="168" height="24" border="0" alt="c_Associate"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="collaboration2.htm"><img src="e_collaboration.png" width="167" height="23" border="0" alt="e_Collaboration"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="dependency.htm"><img src="c_dependency.png" width="167" height="23" border="0" alt="c_Dependency"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="informationitem.htm"><img src="e_informationitem.png" width="169" height="25" border="0" alt="e_informationItem"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="boundary.htm"><img src="e_boundary.png" width="168" height="21" border="0" alt="e_Boundary"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="control.htm"><img src="e_control.png" width="167" height="22" border="0" alt="e_Control"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="190" style="width:190px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="entity.htm"><img src="e_entity3.png" width="166" height="22" border="0" alt="e_entity3"></a></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
